﻿#region Header
// ------------------------ Licence / Copyright ------------------------
// 
// ScrumTable for Scrum Meeting Support
// Copyright © HSR - Hochschule für Technik Rapperswil
// All Rights Reserved
// 
// Author:
//  Michael Gfeller Silvan Gehrig Patrick Boos
// 
// ---------------------------------------------------------------------
#endregion

#region Usings

using ScrumTable.Common.Config.Xml;
using ScrumTable.DL.Data.Common;
using ScrumTable.DL.Data.Common.Config.Driver;
using ScrumTable.DL.Data.Generic.Config.Driver;
using ScrumTable.DL.Data.Generic.Test.Properties;

#endregion

namespace ScrumTable.DL.Data.Generic.Test.Mocks.Config.Driver
{
    /// <summary>
    /// This is the test class for IDriverConfig class.
    /// </summary>
    public class GenericDriverConfigSelectorStub : GenericDriverConfigSelectorBase<GenericDriverConfigStub>
    {
        #region Declarations
        //--------------------------------------------------------------------
        // Declarations
        //--------------------------------------------------------------------

        #endregion

        #region Properties
        //--------------------------------------------------------------------
        // Properties
        //--------------------------------------------------------------------

        #endregion

        #region Constructors / Destructor
        //--------------------------------------------------------------------
        // Constructors / Destructor
        //--------------------------------------------------------------------

        /// <summary>
        /// Initializes a new instance of the <see cref="GenericDriverConfigSelectorStub"/> class.
        /// </summary>
        public GenericDriverConfigSelectorStub(IDataAssemblyInfo driverInfo)
            : base(Resources.DriverConfig, driverInfo)
        {
        }

        #endregion

        #region Methods
        //--------------------------------------------------------------------
        // Methods
        //--------------------------------------------------------------------

        /// <summary>
        /// Creates a new configuration instance out of the given
        /// xml configuration data.
        /// </summary>
        /// <param name="configData">Specifies a string which contains all configuration data to deserialize.</param>
        /// <returns>Returns the deserialized configuration instance.</returns>
        protected override GenericDriverConfigStub CreateConfig(string configData)
        {
            return new XmlConfigSerializer<GenericDriverConfigStub>().Deserialize(configData);
        }

        #endregion

        #region Events
        //--------------------------------------------------------------------
        // Events
        //--------------------------------------------------------------------

        #endregion
    }
}
